package com.qfjy.homework.yangxiao;

/**
 * @author 既然青春留不住
 */
public class Test {

 public static void main(String[] args) {

  ShapeFactory shapeFactory = new ShapeFactory();
  Shape shape1 = shapeFactory.getShape("矩形");
  shape1.draw();

  Shape shape2 = shapeFactory.getShape("圆形");
  shape2.draw();
 }
}
